-
Couldn't load subscription status.
- Fork 6
feat(grids): add both side column pinning custom samples #925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds sample implementations demonstrating the column pinning feature with both left and right pinning capabilities across three grid types: Grid, Tree Grid, and Hierarchical Grid.
- Implements column pinning controls (Pin Left, Pin Right, Unpin) via toolbar buttons
- Configures default pinning positions for selected columns
- Creates complete sample applications with data sources and styling
Reviewed Changes
Copilot reviewed 26 out of 30 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| samples/grids/tree-grid/column-pinning-both-sides/src/index.tsx | Tree grid implementation with employee data and dual-side pinning |
| samples/grids/hierarchical-grid/column-pinning-both-sides/src/index.tsx | Hierarchical grid implementation with customer/order data and nested pinning config |
| samples/grids/grid/column-pinning-both-sides/src/index.tsx | Basic grid implementation with customer data and dynamic column configuration |
| samples/grids/tree-grid/column-pinning-both-sides/src/EmployeesFlatDetails.ts | Employee data model and sample dataset |
| samples/grids/grid/column-pinning-both-sides/src/CustomersData.ts | Customer data model and sample dataset |
| samples/grids/*/column-pinning-both-sides/package.json | Package dependencies for all three sample projects |
| samples/grids/*/column-pinning-both-sides/tsconfig.json | TypeScript configuration for all three samples |
| samples/grids/*/column-pinning-both-sides/ReadMe.md | Documentation for running the samples |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| field="Title" | ||
| dataType="string" | ||
| width="250px" | ||
| pinned={true} |
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'Title' column is missing an explicit pinningPosition property. Without it, the column will use the default pinning position from pinningConfig (ColumnPinningPosition.End), but this is inconsistent with the 'Name' column above it which explicitly sets pinningPosition={ColumnPinningPosition.Start}. For clarity and to avoid unexpected behavior, specify the intended pinning position explicitly.
| pinned={true} | |
| pinned={true} | |
| pinningPosition={ColumnPinningPosition.End} |
| <IgrColumn | ||
| field="ContactName" | ||
| header="Contact Name" | ||
| pinned={true} |
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'ContactName' column is missing an explicit pinningPosition property. Without it, the column will use the default pinning position from pinningConfig (ColumnPinningPosition.End), but this is inconsistent with the 'Company' column above it which explicitly sets pinningPosition={ColumnPinningPosition.Start}. Specify the intended pinning position explicitly.
| pinned={true} | |
| pinned={true} | |
| pinningPosition={ColumnPinningPosition.Start} |
| ></IgrColumn> | ||
| <IgrColumn | ||
| field="ShippedVia" | ||
| header="Shipped Via" | ||
| dataType="string" | ||
| resizable={true} |
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'ShipName' and 'ShippedVia' columns are both pinned but lack explicit pinningPosition properties. Without explicit positions, they will use the default from pinningConfig (ColumnPinningPosition.End), which may not be the intended behavior since the first column 'OrderDate' is explicitly pinned to Start. Specify pinning positions for consistency.
No description provided.